#include <QApplication>
#include "test.h"

#include "CameraView.h"
#include "CaptureThread.h"

Q_DECLARE_METATYPE(Mat)

int main(int argc, char **argv) 
{
	QApplication app(argc, argv);
	
	qRegisterMetaType< Mat >("Mat");

	CaptureThread t(argc, argv, "test");
	CameraView view;
	view.show();

	QObject::connect(&t, &CaptureThread::signalFrameAvailable, &view, &CameraView::updateFrame);
	return app.exec();
}